<extend name="Public/base-kong"/>
<block name="nav">
   <include file="nav"/>
</block>
<block name="body">



  
  <form name="myform" id="myform" action="" method="post" class="form-horizontal J_ajaxForm" enctype="multipart/form-data">
     <div class="tab-content">
    <table width="100%" class="table table_from table-bordered">
          <tr>
            <th width="100">栏目</th>
            <td>{$cate.name}</td>
          </tr>
          <tr>
            <th width="80">标题 </th>
            <td><input type="text" style="width:400px;" value="{$data.title}" name="title"   />
              <span class="red">*</span></td>
          </tr>
           <tr>
              <th >封面:</th >
              <td><att model="config"  action="img"  field="thumb" value="data[thumb]"/></td>
            </tr>
          <tr>
            <th width="80">作者 </th>
            <td><input type="text" name="author"  value="{$data.author|default="管理员"}"  />
              </td>
          </tr>
          
          
          <tr>
            <th width="80">关键词</th>
            <td><input type='text' name='tags' id='tags' value='' style='width:400px'   class='input' placeholder='请输入关键字'>
              多关键词之间用空格隔开</td>
          </tr>
          <tr>
            <th width="80">摘要 </th>
            <td><textarea name='desc' id='desc' style="width:600px">{$data.desc}</textarea></td>
          </tr>
          <tr>
            <th width="80">内容</th>
            <td><ueditor name="content"  width="750" height="400">{$data.content}</ueditor>
              <span>
           
              <div class="content_attr">
                <label>
                  <input name="add_desc" type="checkbox" value="1" checked="">
                  是否截取内容</label>
                <input type="text" name="add_desc_len" value="200" style=" width:60px">
                字符至内容摘要
                <label>
                  <input type="checkbox" name="add_thumb" value="1" checked="">
                  是否获取内容第</label>
                <input type="text" name="add_thumb_no" value="1" style=" width:60px"  class="">
                张图片作为标题图片 </div>
              </span></td>
          </tr>
          
            <tr>
            <th width="80">属性 </th>
            <td><label><input type="checkbox" name="top" value="1" >  置顶</label>    <label><input value="1" type="checkbox" name="tui" > 推荐</label></td>
          </tr>
          
           <tr>
              <th >状态:</th >
              <td>
               <if condition="$edit">
      <label class="radio inline">
                  <input type="radio"  name="status"   value="1" <if condition="$data[status]"> checked="checked"</if> /> 
                  通过</label>
                <label class="radio inline">
                  <input type="radio"  name="status"  value="0"  <if condition="$data[status]==0"> checked="checked"</if> />
                  审核中 </label>
   
     <else/>
       <label class="radio inline">
                  <input type="radio"  name="status"   value="1"  checked="checked" /> 
                  通过</label>
                <label class="radio inline">
                  <input type="radio"  name="status"  value="0"   />
                  审核中 </label>
     
    </if>
            </td>
            </tr>
        
            </tbody>
          
        </table>
        
   
    <div class="form-actions">
    <input type="hidden" name="catid" value="{$cate.id}">
      <if condition="$edit">
     <input type="hidden"  name="id"   value="{$data.id}"  />
   
     
    </if>
    
      <button  class="btn btn-info ajax-post"   target-form="J_ajaxForm" type="submit">提交</button>
      <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
  </form>
</block>
<block name="plugin-script"> 
  <script src="__JS__/content.js"></script> 
  <script src="__JS__/ueditor/ueditor.config.js"></script>
  <script src="__JS__/ueditor/ueditor.all.min.js"></script>
</block>
